package com.order.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.order.common.R;
import com.order.po.orderlist;
import com.order.po.put_storage;
import com.order.service.put_storageService;
@Controller
public class put_storageController {

	 @Autowired
	  private put_storageService put_storageService;
	 
	 @RequestMapping({"/getAllput"})
	   @ResponseBody
	   public R getAllput()
	   {
		 R r = R.ok().put("data", this.put_storageService.getAllput());
	     return r;
	   }
	 
	 @RequestMapping({"/getputbyid"})
	   @ResponseBody
	   public R getputbyid(String parameter,String parameter1,String parameter2)
	   {
		 R r = R.ok().put("data", this.put_storageService.getputbyid(parameter,parameter1,parameter2));
	     return r;
	   }
	 
	 
	 @RequestMapping({ "/insert_putstorage" })
		@ResponseBody
		public void insert_putstorage(put_storage p) {
			this.put_storageService.insert_putstorage(p);
		 }
}
